/* mixins */

@import "src/mixins.scss";
@include DEBUG();
@include useFontSmoothingOnMacOS();

/* wrapper 公共背景 */

.container {
  width: 100%;
  padding-top: 0.08rem;
  box-sizing: border-box;
  @include flex_dis();
  @include flex(flex-direction, column);
  @include flex(align-items, center);
  position: relative;
  // z-index: 1;

  /* header */
  .accordion {
    position: absolute;
    width: 100%;
    bottom: 0.52rem;
    left: 0;
    @include flex_dis();
    @include flex(justify-content, center);

    img {
      width: 1.24rem;
      height: 0.42rem;
    }
  }

  .animation {
    max-height: 1.38rem;
    transition: all .3s linear;
    overflow: hidden;

    &.up {
      max-height: 1.38rem;
    }

    &.down {
      max-height: 10rem;
    }
  }

  .container-header {
    margin-bottom: 0.18rem;

    /* 标题图 */
    .container-header__title {
      width: 4.74rem;
      height: 0.74rem;
    }
  }

  .container-main__countdown {
    position: absolute;
    left: 0;
    top: 0.44rem;
    width: 100%;
    @include flex_dis();
    @include flex(flex-direction, column);
    @include flex(align-items, center);

    .countdown-title {
      width: 4.54rem;
      height: 0.56rem;
    }

    .countdown-main {
      @include flex_dis();
      @include flex(align-items, center);
      @include flex(justify-content, center);
      margin-top: -0.08rem;
      >div{
        width: 0.68rem;
        height: 0.72rem;
        background: url(../../../../../assets/img/end-year/male/final-countdown-bg.png) center center/100% no-repeat;
        margin-left: -0.16rem;
        @include flex_dis();
        @include flex(align-items, center);
        @include flex(justify-content, center);
        p{
          font-size: 0.26rem;
          font-family: PingFangSC-Semibold, PingFang SC;
          font-weight: 600;
          color: #4132AC;
        }
      }
      >span{
        margin: 0 0.08rem 0 0.1rem;
        font-size: 0.22rem;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #E0F0FF;
      }
    }

    .countdown-footer {
      margin-top: -0.08rem;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #9597bd;
      line-height: 0.28rem;
      @include useFontSizeLT12(0.2);
    }
  }

  /* 安全区 */
  .container-main__area {
    width: 6.3rem;
    height: 0.58rem;
    margin-top: 0.48rem;
  }
  /* 活动已结束 */
  .container-main__end {
    position: absolute;
    top: 0.6rem;
    left: 0;
    @include flex_dis();
    width: 100%;
    @include flex(justify-content, center);
    div{
      width: 2.74rem;
      height: 0.58rem;
      background: url(../../../../../assets/img/end-year/nvshen/hxover.png) center center/100% no-repeat;
      @include flex_dis();
      @include flex(justify-content, center);
      @include flex(align-items, center);
      p{
        font-size: 0.24rem;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #B3AFC9;
      }
    }
  }

  /* TOP3 */
  .container-main__top3 {
    width: 6.88rem;
    height: 4.68rem;
    background-position: bottom;
    background-size: 100% auto;
    box-sizing: border-box;
    margin: 0 auto;
    @include flex_dis();
    @include flex(justify-content, space-around);
    >.top3-item{
      @include flex_dis();
        @include flex(align-items, center);
        @include flex(flex-direction, column);
    }
    .top3-1 {
      order: 2;
      margin-top: 0.04rem;
      width: 2.2rem;
      left: 2.36rem;
      .top3--avatar {
        width: 2rem;
        height: 2.28rem;
        margin-bottom: 0.1rem;
        position: relative;
        .detail-avatar__live{
          position: absolute;
          left: 0.16rem;
          top: 0.44rem;
          width: 1.68rem;
          height: 1.68rem;
        }
      }
    }

    .top3-2 {
      order: 1;
      margin-top: 0.42rem;
      width: 1.96rem;
      left: 0.38rem;
      .top3--avatar {
        width: 1.76rem;
        height: 1.92rem;
        margin-bottom: 0.12rem;
        position: relative;
        .detail-avatar__live{
          position: absolute;
          left: 0.16rem;
          top: 0.32rem;
          width: 1.44rem;
          height: 1.44rem;
        }
      }
    }

    .top3-3 {
      order: 3;
      margin-top: 0.58rem;
       width: 1.96rem;
       right: 0.38rem;
      .top3--avatar {
        width: 1.76rem;
        height: 1.92rem;
        margin-bottom: 0.12rem;
        position: relative;
        .detail-avatar__live{
          position: absolute;
          left: 0.16rem;
          top: 0.32rem;
          width: 1.44rem;
          height: 1.44rem;
        }
      }
    }

    .top3--avatar {
      // border-radius: 50%;
      background-size: 100% auto;
      background-position: bottom;
      /* bottom */
      @include flex_dis();
      @include flex(align-items, flex-end);
      overflow: hidden;
      padding: 0.16rem;
      /* 头像框厚度 */
      box-sizing: border-box;

      img {
        display: block;
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        margin: 0 auto;
        border-radius: 50%;
      }
    }

    .top3--nickname {
      font-size: 0.26rem;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #ffffff;
      line-height: 0.36rem;
      text-align: center;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .top3--value {
      font-size: 0.24rem;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #ffee9e;
      line-height: 0.34rem;
      text-align: center;
    }

    .top3--gap {
      font-size: 0.24rem;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #ffffff;
      line-height: 0.34rem;
      text-align: center;
    }

    .top3--tag {
      margin-top: 0.08rem;

      img {
        display: block;
        margin: 0 auto;
        width: 0.6rem;
        height: 0.32rem;
      }
    }
  }
  .end_ac{
    margin-top: -0.52rem;
  }

  /* OTHERS */
  .container-main__others {
    width: 6.98rem;
    margin: 0 auto;

    /* GRID */
    .others-header,
    .others-main__item {
      display: grid;
      grid-template-columns: 23% 47% 30%;
      grid-template-rows: 1fr;
      gap: 0px 0px;
      grid-template-areas: "index detail value";
      justify-items: center;
      align-items: center;

      .index {
        grid-area: index;
      }

      .value {
        grid-area: value;
      }

      .detail {
        grid-area: detail;
      }
    }

    .others-header>div {
      margin-top: 0.08rem;
    }

    .others-main__item .detail {
      justify-self: start;
      /* 居左对齐 */
    }

    .others-header {
      width: 100%;
      padding: 0 0.2rem; // padding: 0.1rem;
      box-sizing: border-box;
      height: 0.68rem;
      background-size: 100%;
      background-position: 0 0;
      font-size: 0.2rem;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #989ac4;
    }
    .others-main {
      width: 100%;
      position: relative;
      z-index: 2;
      >div{
        >img{
          width: 6.3rem;
          height: 0.58rem;
          margin: 0.28rem 0 0.24rem;
        }
        @include flex_dis();
        @include flex(flex-direction, column);
        @include flex(align-items, center);
      }
      /* layout:above footer */
      .others-main__item {
        width: 100%;
        height: 1.38rem;
        padding: 0 0.2rem;
        box-sizing: border-box;
        background-size: 100%;
        margin-bottom: 0.04rem;

        .index,
        .value {
          font-size: 0.28rem;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #ffee85;
          line-height: 0.4rem;
        }

        .detail {
          @include flex_dis();
          @include flex(align-items, center);

          .detail-avatar {
            width: 0.88rem;
            height: 0.88rem;
            border-radius: 50%;
            border: 0.02rem solid #ffe7ba;
            margin-right: 0.12rem;
            position: relative;
            img{
              border-radius: 50%;
              width: 100%;
              height: 100%;
            }
            .live{
              position: absolute;
              left: 0;
              top: 0;
              width: 100%;
              height: 100%;
            }
          }

          .detail-info {
            .detail-info--name {
              font-size: 0.24rem;
              font-family: PingFangSC-Medium, PingFang SC;
              font-weight: 500;
              color: #ffffff;
              line-height: 0.34rem;
              margin-bottom: 0.06rem;
            }

            .detail-info--gap {
              font-size: 0.2rem;
              // @include useFontSizeLT12(0.2, left);
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #fefbe1;
              line-height: 0.28rem;
              white-space: nowrap;
            }
          }
        }
      }

      .others-main__spinner {
        padding: 0.22rem 0 0.18rem;
        @include flex_dis();
        @include flex(justify-content, center);

        .spinner-content {
          height: 0.4rem;
          font-size: 0.28rem;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #ffee85;
          line-height: 0.4rem;
          text-align: center;
          vertical-align: bottom;
        }
      }
    }
    .not_li{
      height: 4rem;
      @include flex_dis();
      @include flex(justify-content, center);
      @include flex(align-items, center);
      p{
        font-size: 0.28rem;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #ffee85;
      }
    }

    .others-footer {
      width: 100%;
      height: 0.58rem;
      background-size: 100%;
      background-position: bottom;
      margin-top: -0.22rem;
    }
  }

  /* footer */
  .container-footer {
    margin-top: 0.2rem;
    margin-bottom: -1.24rem;
    @include flex_dis();
    @include flex(flex-direction, column);
    @include flex(align-items, center);

    >p {
      // @include useFontSizeLT12(0.2);
      font-size: 0.2rem;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #7E7E86;
      line-height: 0.28rem;
      margin-bottom: 0.06rem;
    }
  }

  .myself {
    position: fixed;
    z-index: 999;
    bottom: -0.05rem;
    left: 0;
    margin-bottom: 0 !important;
    width: 7.5rem;
    height: 1.38rem;
    background: url(../../../../../assets/img/end-year/nvshen/mybg.png) no-repeat;
    background-size: 100%;
    display: grid;
    grid-template-columns: 23% 47% 30%;
    grid-template-rows: 1fr;
    gap: 0px 0px;
    grid-template-areas: "index detail value";
    justify-items: center;
    align-items: center;

    .index {
      grid-area: index;
    }

    .value {
      grid-area: value;
    }

    .detail {
      grid-area: detail;
    }

    .index,
    .value {
      font-size: 0.28rem;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #ffee85;
      line-height: 0.4rem;
    }

    .detail {
      @include flex_dis();
      @include flex(align-items, center);

      .detail-avatar {
        width: 0.88rem;
        height: 0.88rem;
        border-radius: 50%;
        border: 0.02rem solid #ffe7ba;
        margin-right: 0.12rem;
      }

      .detail-info {
        .detail-info--name {
          font-size: 0.24rem;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #ffffff;
          line-height: 0.34rem;
          margin-bottom: 0.06rem;
        }

        .detail-info--gap {
          span{
            font-size: 0.2rem;
            // @include useFontSizeLT12(0.2, left);
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #fefbe1;
            line-height: 0.28rem;
            white-space: nowrap;
          }
          img{
            width: 0.6rem;
            height: 0.32rem;
          }
        }
      }
    }
  }
}
